<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <link rel="stylesheet" href="/home/css/reset.css">
    <link rel="stylesheet" href="/home/css/head-footer.css">
    <link rel="stylesheet" href="/home/css/user-center.css">
    <style type="text/css">
    /*分页*/
    .pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}  
    .pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}  
    .pagination .active{background-color: #46A3FF;color: #fff;}  
    .pagination .disabled{color:#aaa;} 
    </style>
</head>

<body>
{include file='base/header' /}
<div class="user-center-wrap">
    <div class="user-center">
        <div class="bread-nav">
            <span>
                 <a href="javascript:void(0)">首页 ></a>
            </span>
            <span>
                <a href="javascript:void(0)">用户中心</a>
            </span>
        </div>
        <div class="user-center-main clearfixa">
            {include file='base/menu' /}
            <div class="user-center-right fr">
                <div class="base-data-list data-list data-list data-list-show">
                    <!-- 公用的'左右'标题导航  -->
                    <div class="user-center-nav-box clearfixa">
                        <div class="user-center-item fl">
                            产品列表
                        </div>
                    </div>
                    <div class="base-data-box">
                       <table class="table-pic">
                            <tr>
                                <th>名称</th>
                                <th>类型</th>
                                <th>开始时间</th>
                                <th>结束时间</th>
                                <th>数量</th>
                                <th>面值</th>
                            </tr>
                            <?php foreach($data as $k=>$v){?>
                            <tr>
                                <td><?=$v['rank']?></td>
                                <td><?php if($v['cart_type'] ==1){echo '实体';}else{ echo '虚拟';}?></td>
                                <td><?php echo $v['effective_start_date'] ?></td>
                                <td><?php echo $v['effective_end_date'] ?></td>
                                <td><?php echo $v['num_all'] ?></td>
                                <td><?php echo $v['num_price'] ?></td>
                            </tr>
                            <?php } ?>
                            
                        </table>
                        {$data->render()}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file='base/footer' /}
</body>

</html>